<%@ page import="com.LLL.product.dao.ProductDao" %>
<%@ page import="com.LLL.customer.model.Product" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/11/28
  Time: 下午8:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .product-item{
            text-align: center;
        }
        .cc {
            text-decoration: none;
            color:blue;

        }
        .product-info{
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            align-content: space-around;
            align-items: flex-start;
            flex-direction: column;
            margin-top: 38px;
        }
        .product-img{
            display: inline-block;
            text-align: center;
        }
        .product-img>img{
            width: 125px;
            height: 125px;
            display:inline-block;
            margin-top: 37px;
        }
        li{
            display: inline-block;
            margin-right: 118px;
            text-decoration: none;
        }
        .hh{
            width: 300px;
            height: 200px;
            border: 1px solid #ccc;
        }
    </style>
</head>
<body >
<div class="product-item">
    <h1 style="text-align: center">商品详情显示页</h1>
    <div class="product-img hh">
        <img src="static/img/productImages/<%=((Product)(request.getAttribute("product"))).getPicture()%>" alt="">
    <div class="product-info hh">
        <div>品名：<span><%=((Product)(request.getAttribute("product"))).getName()%></span></div>
        <div>原价：<del><%=((Product)(request.getAttribute("product"))).getMarket_price()%></del>元</div>
        <div>现价：<span><%=((Product)(request.getAttribute("product"))).getSell_price()%></span>元</div>
        <div>简介：<span><%=((Product)(request.getAttribute("product"))).getDescription()%></span></div>
        <div><a href="product_list.jsp" class="cc">返回</a></div>
        <div><a href='addCar.do?number=1&productId=<%=((Product)(request.getAttribute("product"))).getId()%>' class="cc">添加到购物车</a></div>
    </div>
</div>
</div>
</body>
</html>
